<?php

namespace IDock\Insurance\ZMBX\Request;

use IDock\Insurance\ZMBX\Request\AllZMBXRequest;
use IDock\Insurance\ZMBX\Response\ProposalStatusResponse;
use IDock\Visitor\ProposalStatusVisitor;

class ProposalStatusRequest extends AllZMBXRequest
{
    public $route = 'SubmitStatus.do';
    public $requestCode = 'SubmitStatusQuery';

    protected $response = ProposalStatusResponse::class;

    protected $urlTip = '投保单保单详情';

    /*** @var  ProposalStatusVisitor $visitor */
    protected $visitor;

    public function generate(): array
    {
        $this->setZMBXToken($this->visitor->argc);
        return [
            'proposalNo' => $this->visitor->inquiryNo,
        ];
    }
}
